﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Ruandao.HostServer
{
    /// <summary>
    /// 文件存储类型。
    /// </summary>
    public class StorageType
    {
        public const string Local = "本地：存储在本地硬盘文件夹中";
        public const string Remote = "远程：存储在远程共享文件夹中";

        /// <summary>
        /// 映射表中KeyValue对应的是：ValueTitle。
        /// </summary>
        /// <returns>ValueTitle的映射表。</returns>
        public static Dictionary<string, string> GetMap()
        {
            var dict = new Dictionary<string, string>();
            dict.Add("Local", Local);
            dict.Add("Remote", Remote);
            return dict;
        }
    }

    /// <summary>
    /// 数据库实例的类型
    /// </summary>
    public class DbType
    {
        public const string SqlServer = "SQL Server";
        public const string SqlServerCe = "SQL Server CE";
        public const string LocalSqlite = "本地SQLite";
        public const string RemoteSqlite = "远程SQLite";

        /// <summary>
        /// 映射表中KeyValue对应的是：ValueTitle。
        /// </summary>
        /// <returns>ValueTitle的映射表。</returns>
        public static Dictionary<string, string> GetMap()
        {
            var dict = new Dictionary<string, string>();
            dict.Add("SqlServer", SqlServer);
            dict.Add("SqlServerCe", SqlServerCe);
            dict.Add("LocalSqlite", LocalSqlite);
            dict.Add("RemoteSqlite", RemoteSqlite);
            return dict;
        }
    }

    /// <summary>
    /// 用户的级别。
    /// </summary>
    public class UserLevel
    {
        public const string Free = "免费用户";
        public const string Normal = "普通用户";
        public const string Advance = "高级用户";
        public const string CustomUser = "定制用户";

        /// <summary>
        /// 映射表中KeyValue对应的是：ValueTitle。
        /// </summary>
        /// <returns>ValueTitle的映射表。</returns>
        public static Dictionary<string, string> GetMap()
        {
            var dict = new Dictionary<string, string>();
            dict.Add("Free", Free);
            dict.Add("Normal", Normal);
            dict.Add("Advance", Advance);
            dict.Add("CustomUser", CustomUser);
            return dict;
        }
    }

    /// <summary>
    /// 安全级别
    /// </summary>
    public class SecurityLevel
    {
        public const string Low = "最低安全性";
        public const string Medium = "中等安全性";
        public const string High = "最高安全性";

        /// <summary>
        /// 映射表中KeyValue对应的是：ValueTitle。
        /// </summary>
        /// <returns>ValueTitle的映射表。</returns>
        public static Dictionary<string, string> GetMap()
        {
            var dict = new Dictionary<string, string>();
            dict.Add("Low", Low);
            dict.Add("Medium", Medium);
            dict.Add("High", High);
            return dict;
        }
    }

    /// <summary>
    /// 数据存储类型
    /// </summary>
    public class AccessType
    {
        public const string SqlClient = "使用SqlClient";

        /// <summary>
        /// 映射表中KeyValue对应的是：ValueTitle。
        /// </summary>
        /// <returns>ValueTitle的映射表。</returns>
        public static Dictionary<string, string> GetMap()
        {
            var dict = new Dictionary<string, string>();
            dict.Add("System.Data.SqlClient", SqlClient);
            return dict;
        }
    }
}